<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/boot.js"></script>
</head>

<body>
    <div id="container">
        <div id="formcontainer">
            <table class="layui-table" lay-data="{id: 'datagrid'}" lay-filter="datagrid">
                <thead>
                    <tr>
                        <th lay-data="{field:'job_name',width:300}">任务名称</th>
                        <th lay-data="{field:'job_class_path'}">任务class全路径</th>
                        <th lay-data="{fixed: 'right', width:90, align:'center', toolbar: '#op'}">操作</th>
                    </tr>
                </thead>
            </table>
        </div>
        <div id="opcontainer">
            <button class="layui-btn layui-btn-primary" onclick="HandleClose()">关闭</button>
        </div>
    </div>
</body>
<script type="text/html" id="op">
    <button class="layui-btn layui-btn-sm" lay-event="HandleSelect"><i class="layui-icon layui-icon-edit layui-font-12"></i>选择</button>
</script>
<script>
    $(function() {
        BindTableData();
    })

    function BindTableData() {
        var param = {

        }
        BindTable("datagrid", "system/common/job/getWaitSelectJobList", param, function() {

        }, false)
    }

    function HandleSelect(RowData) {
        CloseDialog(RowData);
    }

    function HandleClose() {
        CloseDialog();
    }
</script>

</html>